import {BaseConfig, FieldConfig} from "@/fields/config";

export class NameConfig extends BaseConfig{
  title = "姓名";
}

const fieldType = "name";

export const nameDefine = {
  name:"姓名",
  icon:"el-icon-user",
  type: fieldType,
  create: () => {
    const config = new NameConfig();
    return new FieldConfig(fieldType, config);
  },
  design: () => import(/* webpackChunkName: "form.comp.all" */ "@/views/fields/designer/name/index"),
  config: () => import(/* webpackChunkName: "form.comp.all" */ "@/views/fields/config/name/index")
}
